<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="jquery.js"></script>
    <script>
        $(function () {
            $("div").click(function () {
                var msg=localStorage.getItem("phone");
                $("p").html(msg);

            });
        })
    </script>
</head>
<body>
    <div>点击获取数据</div>
    <p></p>
</body>
</html>